home *** CD-ROM | disk | FTP | other *** search
/ GFX Sensations 1 / Graphic Sensations - Volume 1.iso / tools / amiga / 3d_tools / irit40s.lha / Irit / makefile.tc < prev    next >
Encoding:
Makefile  |  1993-12-30  |  4.7 KB  |  193 lines

  1. #
  2. # This make file is the main make file of the IRIT solid modeller and its
  3. # auxilary tools.
  4. #
  5. # Do the following before run make:
  6. #
  7. # 1. Edit 'makeflag.dos' for the exact path names to ne used for libraries and
  8. #    binaries. Also set the C compiler and linker flags.
  9. # 2. Make sure lib_gifl.lib for MSDOS from the lib subdirectory is in the same
  10. #    place as LIB_DIR as set in dirs.dos and that lib_gif.h from the inc
  11. #    subdirectory is in the same place as INC_DIR as set in dirs.dos. This
  12. #    library is provided compiled in large model only. See documentation
  13. #    on how to get its sources.
  14. #
  15. # Only large model is created here.
  16. #
  17. #                Gershon Elber, Nov. 1991
  18. #
  19.  
  20. # Works only on TC++ 1.0 make and up - swap out make before invoking command.
  21. #.SWAP
  22.  
  23. # Includes generic definitions.
  24. !include "makeflag.tc"
  25.  
  26. all:    misc_lib cagd_lib prsr_lib geom_lib \
  27.     grapdrvs irit poly3d-h poly3d-r illustrt iritfltr docs
  28.     type &&!
  29. Before executing the test suite and/or any usage of this package
  30. you will have to issue the following command:
  31.  
  32. set path = %path%;$(BIN_DIR)
  33.  
  34. or similar.
  35. !
  36.  
  37. #
  38. # Uncommend the following variable to only see the actions taken.
  39. #
  40. # VIEW_ONLY = -n
  41.  
  42. poly3d-h:
  43.     cd poly3d-h
  44.     -make $(VIEW_ONLY) -fmakefile.tc install
  45.     cd ..
  46.  
  47. poly3d-r:
  48.     cd poly3d-r
  49.     -make $(VIEW_ONLY) -fmakefile.tc install
  50.     cd ..
  51.  
  52. illustrt:
  53.     cd illustrt
  54.     -make $(VIEW_ONLY) -fmakefile.tc install
  55.     cd ..
  56.  
  57. misc_lib:
  58.     cd misc_lib
  59.     -make $(VIEW_ONLY) -fmakefile.tc install
  60.     cd ..
  61.  
  62. prsr_lib:
  63.     cd prsr_lib
  64.     -make $(VIEW_ONLY) -fmakefile.tc install
  65.     cd ..
  66.  
  67. geom_lib:
  68.     cd geom_lib
  69.     -make $(VIEW_ONLY) -fmakefile.tc install
  70.     cd ..
  71.  
  72. grapdrvs:
  73.     cd grapdrvs
  74.     -make $(VIEW_ONLY) -fmakefile.tc install
  75.     cd ..
  76.  
  77. cagd_lib:
  78.     cd cagd_lib
  79.     -make $(VIEW_ONLY) -fmakefile.tc install
  80.     cd ..
  81.  
  82. irit:
  83.     cd irit
  84.     -make $(VIEW_ONLY) -fmakefile.tc install
  85.     cd ..\docs
  86.     -make $(VIEW_ONLY) -fmakefile.tc install
  87.     cd ..
  88.  
  89. iritfltr:
  90.     cd iritfltr
  91.     -make $(VIEW_ONLY) -fmakefile.tc install
  92.     cd ..
  93.  
  94.  
  95. clean:
  96.     -rm poly3d-h\*.map poly3d-h\*.bak poly3d-h\*.old poly3d-h\*.hdn poly3d-h\*.sym
  97.     -rm poly3d-r\*.map poly3d-r\*.bak poly3d-r\*.old poly3d-r\*.gif poly3d-r\*.sym
  98.     -rm illustrt\*.map illustrt\*.bak illustrt\*.old illustrt\*.sym
  99.     -rm iritfltr\*.map iritfltr\*.bak iritfltr\*.old iritfltr\*.sym
  100.     -rm cagd_lib\*.map cagd_lib\*.bak cagd_lib\*.sym
  101.     -rm prsr_lib\*.map prsr_lib\*.bak prsr_lib\*.sym
  102.     -rm geom_lib\*.map geom_lib\*.bak geom_lib\*.sym
  103.     -rm grapdrvs\*.map grapdrvs\*.bak grapdrvs\*.sym
  104.     -rm misc_lib\*.map misc_lib\*.bak misc_lib\*.sym
  105.     -rm irit\*.map irit\*.bak irit\*.old irit\*.sym irit\*.dat
  106.     -rm docs\irithlp.exe
  107.  
  108. cleanobj:
  109.     -rm poly3d-h\*.obj poly3d-r\*.obj illustrt\*.obj \
  110.         irit\*.obj iritfltr\*.obj cagd_lib\*.obj misc_lib\*.obj \
  111.         grapdrvs\*.obj prsr_lib\*.obj geom_lib\*.obj docs\*.obj
  112.     -rm docs\irithlp.exe
  113.  
  114. #
  115. # Make hardcopy documentation.
  116. #
  117. docs:
  118.     cd docs
  119.     -make $(VIEW_ONLY) -f makefile.tc irit.tex irit.doc
  120.     cd ..
  121.  
  122. #
  123. # Test some of the above programs. Make sure $(BIN_DIR) is in your path
  124. #
  125. test:
  126.     cd irit
  127.     -irit demo
  128.     cd ..\poly3d-h
  129.     -test-dos
  130.     cd ..\poly3d-r
  131.     -test-dos
  132.     cd ..\illustrt
  133.     -test-dos
  134.     cd ..\iritfltr
  135.     -test-dos
  136.     cd ..
  137.  
  138. #
  139. # Generate dependencies for the source tree.
  140. #
  141. depend:
  142.     cd irit
  143.     -makedpnd -u -r -m makefile.unx *.c
  144.     -makedpnd -u -r -m makefile.os2 *.c
  145.     -makedpnd    -r -m makefile.tc *.c
  146.     cd ..\poly3d-h
  147.     -makedpnd -u -r -m makefile.unx *.c
  148.     -makedpnd -u -r -m makefile.os2 *.c
  149.     -makedpnd -u -r -m makefile.djg *.c
  150.     -makedpnd    -r -m makefile.tc *.c
  151.     cd ..\poly3d-r
  152.     -makedpnd -u -r -m makefile.unx *.c
  153.     -makedpnd -u -r -m makefile.os2 *.c
  154.     -makedpnd -u -r -m makefile.djg *.c
  155.     -makedpnd    -r -m makefile.tc *.c
  156.     cd ..\illustrt
  157.     -makedpnd -u -r -m makefile.unx *.c
  158.     -makedpnd -u -r -m makefile.os2 *.c
  159.     -makedpnd -u -r -m makefile.djg *.c
  160.     -makedpnd    -r -m makefile.tc *.c
  161.     cd ..\iritfltr
  162.     -makedpnd -u -r -m makefile.unx *.c
  163.     -makedpnd -u -r -m makefile.os2 *.c
  164.     -makedpnd -u -r -m makefile.djg *.c
  165.     -makedpnd    -r -m makefile.tc *.c
  166.     cd ..\cagd_lib
  167.     -makedpnd -u -r -m makefile.unx *.c
  168.     -makedpnd -u -r -m makefile.os2 *.c
  169.     -makedpnd -u -r -m makefile.djg *.c
  170.     -makedpnd    -r -m makefile.tc *.c
  171.     cd ..\misc_lib
  172.     -makedpnd -u -r -m makefile.unx *.c
  173.     -makedpnd -u -r -m makefile.os2 *.c
  174.     -makedpnd -u -r -m makefile.djg *.c
  175.     -makedpnd    -r -m makefile.tc *.c
  176.     cd ..\prsr_lib
  177.     -makedpnd -u -r -m makefile.unx *.c
  178.     -makedpnd -u -r -m makefile.os2 *.c
  179.     -makedpnd -u -r -m makefile.djg *.c
  180.     -makedpnd    -r -m makefile.tc *.c
  181.     cd ..\geom_lib
  182.     -makedpnd -u -r -m makefile.unx *.c
  183.     -makedpnd -u -r -m makefile.os2 *.c
  184.     -makedpnd -u -r -m makefile.djg *.c
  185.     -makedpnd    -r -m makefile.tc *.c
  186.     cd ..\grapdrvs
  187.     -makedpnd -u -r -m makefile.unx *.c
  188.     -makedpnd -u -r -m makefile.os2 *.c
  189.     -makedpnd -u -r -m makefile.djg *.c
  190.     -makedpnd    -r -m makefile.tc *.c
  191.     cd ..
  192.  
  193.